﻿<%@ page contentType="text/html; charset=UTF-8" %>
<%@ page import="org.apache.axis.client.*" %>
<html>
<head>
<title></title>
</head>
<body>
<%              String a = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" + "<order>"
			+ "<customerCompanyId>a</customerCompanyId>"
			+ "<providerCompanyId>001</providerCompanyId>"
			+ "<orderId>4</orderId>" + "<orderDesc>change</orderDesc>"
			+ "<onPostDate>20130123</onPostDate>"
			+ "<quotationId>200</quotationId>"
			+ "<quotationCode>2200</quotationCode>"
			+ "<quotationName>高管报价单 </quotationName>"
			+ "<quotationDesc>适用高管 </quotationDesc>"
			+ "<employees>"
			+ "<employee><employeeId>963</employeeId>"
			+ "<employeeCode>1109</employeeCode>"
			+ "<employeeName>高兴</employeeName>"
			+ "<employeeGender>1</employeeGender>"
			+ "<employeeBirthday>11111111</employeeBirthday>"
			+ "<idCardType>1</idCardType>"
			+ "<cardNum>111111111111111111</cardNum>"
			+ "<contactTel></contactTel>" + "<residentType>1</residentType>"
			+ "<residentAddress></residentAddress>"
			+ "<workLocation>北京</workLocation>"
			+ "<payrollLocation>北京</payrollLocation>"
			+ "<socialSecurityLocation>北京</socialSecurityLocation>"
			+ "<marital>1</marital>" + "</employee>" + "</employees>"
			+ "<products>" + "<product>" + "<productId>3</productId>"
			+ "<productName>服务费</productName>"
			+ "<productSimleDesc>基本服务费</productSimleDesc>"
			+ "<productDetailDesc>高管</productDetailDesc>"
			+ "<productBase></productBase>"
			+ "<productPrice>80.0</productPrice>"
			+ "<isFixPrice>1</isFixPrice>" + "<isBasePrice>0</isBasePrice>"
			+ "<startDate>20130123</startDate>"
			+ "<finishDate>20130131</finishDate>"
			+ "<productOrderMemo></productOrderMemo>" + "</product>"
			+ "<product>" + "<productId>4</productId>"
			+ "<productName>养老金</productName>"
			+ "<productSimleDesc>养老金</productSimleDesc>"
			+ "<productDetailDesc></productDetailDesc>"
			+ "<productBase>234.0</productBase>"
			+ "<productPrice></productPrice>" + "<isFixPrice>0</isFixPrice>"
			+ "<isBasePrice>1</isBasePrice>"
			+ "<startDate>20130125</startDate>" + "<finishDate></finishDate>"
			+ "<productOrderMemo></productOrderMemo>" + "</product>"
			+ "<product>" + "<productId>5</productId>"
			+ "<productName>商业保险</productName>"
			+ "<productSimleDesc>商业保险</productSimleDesc>"
			+ "<productDetailDesc></productDetailDesc>"
			+ "<productBase></productBase>"
			+ "<productPrice>400.0</productPrice>"
			+ "<isFixPrice>0</isFixPrice>" + "<isBasePrice>0</isBasePrice>"
			+ "<startDate>20130126</startDate>" + "<finishDate></finishDate>"
			+ "<productOrderMemo></productOrderMemo>" + "</product>"
			+ "</products>" + "</order>";
			
        String endpoint = "http://localhost:9991/chengtian/services/GetDataFromHro.jws";  
        Service service = new Service();    
        Call call = (Call) service.createCall();
        call.setTargetEndpointAddress(new java.net.URL(endpoint));  
        call.setOperationName("processOrder");
        System.out.println("DDDDDDDDDDD");
        try{
          String ret = (String) call.invoke(new Object[] {a}); 
          System.out.println(ret);  
        }catch(Exception e){
           e.printStackTrace();
        }
%>
</body>
</html>
